<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>JSON Voorhees: Serialization</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="http://www.mathjax.org/mathjax/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">JSON Voorhees
   </div>
   <div id="projectbrief">Killer JSON for C++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__Serialization.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Serialization</div>  </div>
</div><!--header-->
<div class="contents">

<p>Serialization components are responsible for conversion between a C++ type and a JSON <code>value</code>.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structjsonv_1_1version.html">jsonv::version</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Represents a version used to extract and encode JSON objects from C++ classes.  <a href="structjsonv_1_1version.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1extraction__error.html">jsonv::extraction_error</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Exception thrown if there is any problem running <code>extract</code>.  <a href="classjsonv_1_1extraction__error.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1no__extractor.html">jsonv::no_extractor</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Thrown when <code><a class="el" href="classjsonv_1_1formats.html#a4f5ccf3fbaf50aee040a6dbaa3859447" title="Extract the provided type from a value into an area of memory. ">formats::extract</a></code> does not have an <code>extractor</code> for the provided type.  <a href="classjsonv_1_1no__extractor.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1no__serializer.html">jsonv::no_serializer</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Thrown when <code><a class="el" href="classjsonv_1_1formats.html#afd80a13509c2d95d3ea2053e57a85d8a" title="Encode the provided value from into a JSON value. ">formats::to_json</a></code> does not have a <code>serializer</code> for the provided type.  <a href="classjsonv_1_1no__serializer.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1extractor.html">jsonv::extractor</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An <code>extractor</code> holds the method for converting a <code>value</code> into an arbitrary C++ type.  <a href="classjsonv_1_1extractor.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1serializer.html">jsonv::serializer</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A <code>serializer</code> holds the method for converting an arbitrary C++ type into a <code>value</code>.  <a href="classjsonv_1_1serializer.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1adapter.html">jsonv::adapter</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An <code>adapter</code> is both an <code>extractor</code> and a <code>serializer</code>.  <a href="classjsonv_1_1adapter.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1formats.html">jsonv::formats</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Simply put, this class is a collection of <code>extractor</code> and <code>serializer</code> instances.  <a href="classjsonv_1_1formats.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1context__base.html">jsonv::context_base</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides extra information to routines used for extraction.  <a href="classjsonv_1_1context__base.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1extraction__context.html">jsonv::extraction_context</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1serialization__context.html">jsonv::serialization_context</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1extractor__construction.html">jsonv::extractor_construction&lt; T &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1extractor__for.html">jsonv::extractor_for&lt; T &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1function__extractor.html">jsonv::function_extractor&lt; T, FExtract &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1serializer__for.html">jsonv::serializer_for&lt; T &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1function__serializer.html">jsonv::function_serializer&lt; T, FToJson &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1adapter__for.html">jsonv::adapter_for&lt; T &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1function__adapter.html">jsonv::function_adapter&lt; T, FExtract, FToJson &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1optional__adapter.html">jsonv::optional_adapter&lt; TOptional &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An adapter for optional-like types.  <a href="classjsonv_1_1optional__adapter.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1container__adapter.html">jsonv::container_adapter&lt; TContainer &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An adapter for container types.  <a href="classjsonv_1_1container__adapter.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1wrapper__adapter.html">jsonv::wrapper_adapter&lt; TWrapper &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An adapter for "wrapper" types.  <a href="classjsonv_1_1wrapper__adapter.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1enum__adapter.html">jsonv::enum_adapter&lt; TEnum, FEnumComp, FValueComp &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An adapter for enumeration types.  <a href="classjsonv_1_1enum__adapter.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1polymorphic__adapter.html">jsonv::polymorphic_adapter&lt; TPointer &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An adapter which can create polymorphic types.  <a href="classjsonv_1_1polymorphic__adapter.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga095e1bea81644c5e5d82e75e1d188e38"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Serialization.html#ga095e1bea81644c5e5d82e75e1d188e38">jsonv::demangle_function</a> = std::function&lt; std::string(string_view source)&gt;</td></tr>
<tr class="memdesc:ga095e1bea81644c5e5d82e75e1d188e38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type of function used in setting a custom demangler.  <a href="#ga095e1bea81644c5e5d82e75e1d188e38">More...</a><br/></td></tr>
<tr class="separator:ga095e1bea81644c5e5d82e75e1d188e38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6cc69243779f3517d743c08fb8ead60f"><td class="memTemplParams" colspan="2">template&lt;typename TEnum , typename FEnumComp  = std::less&lt;TEnum&gt;&gt; </td></tr>
<tr class="memitem:ga6cc69243779f3517d743c08fb8ead60f"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__Serialization.html#ga6cc69243779f3517d743c08fb8ead60f">jsonv::enum_adapter_icase</a> = enum_adapter&lt; TEnum, FEnumComp, value_less_icase &gt;</td></tr>
<tr class="memdesc:ga6cc69243779f3517d743c08fb8ead60f"><td class="mdescLeft">&#160;</td><td class="mdescRight">An adapter for enumeration types which ignores the case when extracting from JSON.  <a href="#ga6cc69243779f3517d743c08fb8ead60f">More...</a><br/></td></tr>
<tr class="separator:ga6cc69243779f3517d743c08fb8ead60f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga26c620d20cffb45e1145fe95eeb37d00"><td class="memItemLeft" align="right" valign="top"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Serialization.html#ga26c620d20cffb45e1145fe95eeb37d00">jsonv::demangle</a> (string_view source)</td></tr>
<tr class="memdesc:ga26c620d20cffb45e1145fe95eeb37d00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the input <em>source</em> from a mangled type into a human-friendly version.  <a href="#ga26c620d20cffb45e1145fe95eeb37d00">More...</a><br/></td></tr>
<tr class="separator:ga26c620d20cffb45e1145fe95eeb37d00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga736f002ced4a200be19e203b406a9c6c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Serialization.html#ga736f002ced4a200be19e203b406a9c6c">jsonv::set_demangle_function</a> (demangle_function func)</td></tr>
<tr class="memdesc:ga736f002ced4a200be19e203b406a9c6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the global demangle function.  <a href="#ga736f002ced4a200be19e203b406a9c6c">More...</a><br/></td></tr>
<tr class="separator:ga736f002ced4a200be19e203b406a9c6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5122b2a35367e3978eecfe18f2c74958"><td class="memItemLeft" align="right" valign="top"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Serialization.html#ga5122b2a35367e3978eecfe18f2c74958">jsonv::reset_demangle_function</a> ()</td></tr>
<tr class="memdesc:ga5122b2a35367e3978eecfe18f2c74958"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the demangle function to the default.  <a href="#ga5122b2a35367e3978eecfe18f2c74958">More...</a><br/></td></tr>
<tr class="separator:ga5122b2a35367e3978eecfe18f2c74958"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga75b53c85ab73bce4a1d0027c556715a8"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ga75b53c85ab73bce4a1d0027c556715a8"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__Serialization.html#ga75b53c85ab73bce4a1d0027c556715a8">jsonv::extract</a> (const value &amp;from, const formats &amp;fmts)</td></tr>
<tr class="memdesc:ga75b53c85ab73bce4a1d0027c556715a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract a C++ value from <em>from</em> using the provided <em>fmts</em>.  <a href="#ga75b53c85ab73bce4a1d0027c556715a8">More...</a><br/></td></tr>
<tr class="separator:ga75b53c85ab73bce4a1d0027c556715a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac24f0cb864988715300f4741b5031546"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:gac24f0cb864988715300f4741b5031546"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__Serialization.html#gac24f0cb864988715300f4741b5031546">jsonv::extract</a> (const value &amp;from)</td></tr>
<tr class="memdesc:gac24f0cb864988715300f4741b5031546"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract a C++ value from <em>from</em> using <code><a class="el" href="classjsonv_1_1formats.html#a4403758d5e87d0862a04fc5d9171991d" title="Get the global formats instance. ">jsonv::formats::global()</a></code>.  <a href="#gac24f0cb864988715300f4741b5031546">More...</a><br/></td></tr>
<tr class="separator:gac24f0cb864988715300f4741b5031546"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaabee8db6887a255c3b351d127bfad140"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:gaabee8db6887a255c3b351d127bfad140"><td class="memTemplItemLeft" align="right" valign="top">value&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__Serialization.html#gaabee8db6887a255c3b351d127bfad140">jsonv::to_json</a> (const T &amp;from, const formats &amp;fmts)</td></tr>
<tr class="memdesc:gaabee8db6887a255c3b351d127bfad140"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encode a JSON <code>value</code> from <em>from</em> using the provided <em>fmts</em>.  <a href="#gaabee8db6887a255c3b351d127bfad140">More...</a><br/></td></tr>
<tr class="separator:gaabee8db6887a255c3b351d127bfad140"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga52201f62c91cdfb758fdb62a330f6e5f"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ga52201f62c91cdfb758fdb62a330f6e5f"><td class="memTemplItemLeft" align="right" valign="top">value&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__Serialization.html#ga52201f62c91cdfb758fdb62a330f6e5f">jsonv::to_json</a> (const T &amp;from)</td></tr>
<tr class="memdesc:ga52201f62c91cdfb758fdb62a330f6e5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encode a JSON <code>value</code> from <em>from</em> using <code><a class="el" href="classjsonv_1_1formats.html#a4403758d5e87d0862a04fc5d9171991d" title="Get the global formats instance. ">jsonv::formats::global()</a></code>.  <a href="#ga52201f62c91cdfb758fdb62a330f6e5f">More...</a><br/></td></tr>
<tr class="separator:ga52201f62c91cdfb758fdb62a330f6e5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0bd79426477091433b93dfd5228fe205"><td class="memTemplParams" colspan="2"><a class="anchor" id="ga0bd79426477091433b93dfd5228fe205"></a>
template&lt;typename FExtract &gt; </td></tr>
<tr class="memitem:ga0bd79426477091433b93dfd5228fe205"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><b>jsonv::make_extractor</b> (FExtract func) -&gt; function_extractor&lt; decltype(func(std::declval&lt; const extraction_context &amp; &gt;(), std::declval&lt; const value &amp; &gt;())), FExtract &gt;</td></tr>
<tr class="separator:ga0bd79426477091433b93dfd5228fe205"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1198650bb8204d2aebbebe51cb73c1e8"><td class="memTemplParams" colspan="2"><a class="anchor" id="ga1198650bb8204d2aebbebe51cb73c1e8"></a>
template&lt;typename FExtract , typename  = void&gt; </td></tr>
<tr class="memitem:ga1198650bb8204d2aebbebe51cb73c1e8"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><b>jsonv::make_extractor</b> (FExtract func) -&gt; function_extractor&lt; decltype(func(std::declval&lt; const value &amp; &gt;())), FExtract &gt;</td></tr>
<tr class="separator:ga1198650bb8204d2aebbebe51cb73c1e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga28a74d2a76b780e871b1649b26d6dd53"><td class="memTemplParams" colspan="2"><a class="anchor" id="ga28a74d2a76b780e871b1649b26d6dd53"></a>
template&lt;typename T , typename FToJson &gt; </td></tr>
<tr class="memitem:ga28a74d2a76b780e871b1649b26d6dd53"><td class="memTemplItemLeft" align="right" valign="top">function_serializer&lt; T, FToJson &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>jsonv::make_serializer</b> (FToJson to_json_)</td></tr>
<tr class="separator:ga28a74d2a76b780e871b1649b26d6dd53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga61a12a0a37816093a912c93332b50602"><td class="memTemplParams" colspan="2"><a class="anchor" id="ga61a12a0a37816093a912c93332b50602"></a>
template&lt;typename FExtract , typename FToJson &gt; </td></tr>
<tr class="memitem:ga61a12a0a37816093a912c93332b50602"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><b>jsonv::make_adapter</b> (FExtract extract, FToJson to_json_) -&gt; function_adapter&lt; decltype(extract(std::declval&lt; const extraction_context &amp; &gt;(), std::declval&lt; const value &amp; &gt;())), FExtract, FToJson &gt;</td></tr>
<tr class="separator:ga61a12a0a37816093a912c93332b50602"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga38ba86c52138b27482d55f9449daed52"><td class="memTemplParams" colspan="2"><a class="anchor" id="ga38ba86c52138b27482d55f9449daed52"></a>
template&lt;typename FExtract , typename FToJson , typename  = void&gt; </td></tr>
<tr class="memitem:ga38ba86c52138b27482d55f9449daed52"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><b>jsonv::make_adapter</b> (FExtract extract, FToJson to_json_) -&gt; function_adapter&lt; decltype(extract(std::declval&lt; const value &amp; &gt;())), FExtract, FToJson &gt;</td></tr>
<tr class="separator:ga38ba86c52138b27482d55f9449daed52"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Serialization components are responsible for conversion between a C++ type and a JSON <code>value</code>. </p>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ga095e1bea81644c5e5d82e75e1d188e38"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="group__Serialization.html#ga095e1bea81644c5e5d82e75e1d188e38">jsonv::demangle_function</a> = typedef std::function&lt;std::string (string_view source)&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Type of function used in setting a custom demangler. </p>
<dl class="section see"><dt>See Also</dt><dd>demangle </dd>
<dd>
set_demangle_function </dd></dl>

<p>Definition at line <a class="el" href="demangle_8hpp_source.html#l00040">40</a> of file <a class="el" href="demangle_8hpp_source.html">demangle.hpp</a>.</p>

</div>
</div>
<a class="anchor" id="ga6cc69243779f3517d743c08fb8ead60f"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TEnum , typename FEnumComp  = std::less&lt;TEnum&gt;&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="group__Serialization.html#ga6cc69243779f3517d743c08fb8ead60f">jsonv::enum_adapter_icase</a> = typedef enum_adapter&lt;TEnum, FEnumComp, value_less_icase&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>An adapter for enumeration types which ignores the case when extracting from JSON. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classjsonv_1_1enum__adapter.html" title="An adapter for enumeration types. ">enum_adapter</a> </dd></dl>

<p>Definition at line <a class="el" href="serialization__util_8hpp_source.html#l00518">518</a> of file <a class="el" href="serialization__util_8hpp_source.html">serialization_util.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga26c620d20cffb45e1145fe95eeb37d00"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> std::string jsonv::demangle </td>
          <td>(</td>
          <td class="paramtype">string_view&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert the input <em>source</em> from a mangled type into a human-friendly version. </p>
<p>This is used by <code>formats</code> (and the associated serialization functions) to give more user-friendly names in type errors.</p>
<dl class="section see"><dt>See Also</dt><dd>demangle_function </dd>
<dd>
set_demangle_function </dd></dl>

</div>
</div>
<a class="anchor" id="ga75b53c85ab73bce4a1d0027c556715a8"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T jsonv::extract </td>
          <td>(</td>
          <td class="paramtype">const value &amp;&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const formats &amp;&#160;</td>
          <td class="paramname"><em>fmts</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Extract a C++ value from <em>from</em> using the provided <em>fmts</em>. </p>

<p>Definition at line <a class="el" href="serialization_8hpp_source.html#l00581">581</a> of file <a class="el" href="serialization_8hpp_source.html">serialization.hpp</a>.</p>

</div>
</div>
<a class="anchor" id="gac24f0cb864988715300f4741b5031546"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T jsonv::extract </td>
          <td>(</td>
          <td class="paramtype">const value &amp;&#160;</td>
          <td class="paramname"><em>from</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Extract a C++ value from <em>from</em> using <code><a class="el" href="classjsonv_1_1formats.html#a4403758d5e87d0862a04fc5d9171991d" title="Get the global formats instance. ">jsonv::formats::global()</a></code>. </p>

<p>Definition at line <a class="el" href="serialization_8hpp_source.html#l00589">589</a> of file <a class="el" href="serialization_8hpp_source.html">serialization.hpp</a>.</p>

</div>
</div>
<a class="anchor" id="ga5122b2a35367e3978eecfe18f2c74958"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> void jsonv::reset_demangle_function </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resets the demangle function to the default. </p>
<dl class="section see"><dt>See Also</dt><dd>set_demangle_function </dd></dl>

</div>
</div>
<a class="anchor" id="ga736f002ced4a200be19e203b406a9c6c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="config_8hpp.html#acd0703012bd724b356c177b7bc3d761d">JSONV_PUBLIC</a> void jsonv::set_demangle_function </td>
          <td>(</td>
          <td class="paramtype">demangle_function&#160;</td>
          <td class="paramname"><em>func</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the global demangle function. </p>
<p>This controls the behavior of <code>demangle</code> &ndash; the provided <em>func</em> will be called by <code>demangle</code>.</p>
<dl class="section see"><dt>See Also</dt><dd>demangle </dd></dl>

</div>
</div>
<a class="anchor" id="gaabee8db6887a255c3b351d127bfad140"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">value jsonv::to_json </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const formats &amp;&#160;</td>
          <td class="paramname"><em>fmts</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Encode a JSON <code>value</code> from <em>from</em> using the provided <em>fmts</em>. </p>

<p>Definition at line <a class="el" href="serialization_8hpp_source.html#l00629">629</a> of file <a class="el" href="serialization_8hpp_source.html">serialization.hpp</a>.</p>

</div>
</div>
<a class="anchor" id="ga52201f62c91cdfb758fdb62a330f6e5f"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">value jsonv::to_json </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>from</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Encode a JSON <code>value</code> from <em>from</em> using <code><a class="el" href="classjsonv_1_1formats.html#a4403758d5e87d0862a04fc5d9171991d" title="Get the global formats instance. ">jsonv::formats::global()</a></code>. </p>

<p>Definition at line <a class="el" href="serialization_8hpp_source.html#l00637">637</a> of file <a class="el" href="serialization_8hpp_source.html">serialization.hpp</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
